package com.lanou.service.Impl;

import com.lanou.entity.ChargingStandards;
import com.lanou.mapper.ChargingStandardsMapper;
import com.lanou.service.ChargingStandardsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ChargingStandardsServiceImpl
 * @Description TODO
 * @Author chenzhaobao
 * @Date 2025年08月14日 10:54
 * @Version 1.0
 */
@Service
public class ChargingStandardsServiceImpl implements ChargingStandardsService {
    @Autowired
    private ChargingStandardsMapper chargingStandardsMapper;
    @Override
    public int insert(ChargingStandards chargingStandards) {
        return chargingStandardsMapper.insert(chargingStandards);
    }

    @Override
    public int deleteById(Integer id) {
        return chargingStandardsMapper.deleteById(id);
    }

    @Override
    public int updateById(ChargingStandards chargingStandards) {
        return chargingStandardsMapper.updateById(chargingStandards);
    }

    @Override
    public ChargingStandards selectById(Integer id) {
        return chargingStandardsMapper.selectById(id);
    }

    @Override
    public List<ChargingStandards> selectAll() {
        return chargingStandardsMapper.selectAll();
    }

    @Override
    public List<ChargingStandards> selectByConsultantId(Integer consultantId) {
        return chargingStandardsMapper.selectByConsultantId(consultantId);
    }
}
